<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<c:set var="basepath" value="${pageContext.request.contextPath}"></c:set>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head lang="en">
<meta charset="utf-8" />
<title>zmall网上商城</title>
<link rel="stylesheet" type="text/css" href="Style/css/public.css" />
<link rel="stylesheet" type="text/css" href="Style/css/proList.css" />
<link rel="stylesheet" type="text/css" href="Style/css/mygxin.css" />
</head>
<body>
	<!----------------------------------------order------------------>
	<div class="head ding">
		<div class="wrapper clearfix">
			<div class="clearfix" id="top">
				<h1 class="fl">
					<a href="UserIndex.jsp"><img
						src="${basepath}/efront/Style/img/logo2.png"
						style="margin-top: -20px" height="95px"></a>
				</h1>
				<div class="fr clearfix" id="top1">
					<p class="fl">
						<a href="#" id="login">登录</a><a href="#" id="reg">注册</a>
					</p>
					<form action="#" method="get" class="fl">
						<input type="text" placeholder="搜索" /><input type="button" />
					</form>
					<div class="btn fl clearfix">
						<a href="mygxin.html"><img src="Style/img/grzx.png" /></a><a
							href="#" class="er1"><img src="Style/img/ewm.png" /></a><a
							href="cart.html"><img src="Style/img/gwc.png" /></a>
						<p>
							<a href="#"><img src="Style/img/smewm.png" /></a>
						</p>
					</div>
				</div>
			</div>

		</div>
	</div>
	<div class="order cart mt">
		<!-----------------site------------------->
		<div class="site">
			<p class="wrapper clearfix">
				<span class="fl">订单确认</span><img class="top"
					src="Style/img/temp/cartTop02.png">
			</p>
		</div>
		<!-----------------orderCon------------------->
		<div class="orderCon wrapper clearfix">
			<div class="orderL fl">
				<!--------h3---------------->
				<h3>
					收件信息<a href="#" class="fr">新增地址</a>
				</h3>
				<!--------addres---------------->
				<div class="addres clearfix">
					<div class="addre fl on">
						<c:if test="${user==null}">
							<!-- c:redirect 跳转到 UserServlet -->
							<c:redirect url="UserServlet"></c:redirect>
						</c:if>
						<c:if test="${user!=null }">

							<div class="tit clearfix">
								<p class="fl">${user.username}
									<span class="default">[默认地址]</span>
								</p>
								<p class="fr">
									<a href="#">删除</a><span>|</span><a href="#" class="edit">编辑</a>
								</p>
							</div>
							<div class="addCon">
								<p>${user.address}</p>
								<p>${user.userphone}</p>
							</div>

						</c:if>
					</div>



				</div>
				<h3>支付方式</h3>
				<!--------way---------------->
				<div class="way clearfix">
					<img class="on" src="Style/img/temp/way01.jpg"><img
						src="Style/img/temp/way02.jpg"><img
						src="Style/img/temp/way03.jpg"><img
						src="Style/img/temp/way04.jpg">
				</div>
				<h3>选择快递</h3>
				<!--------dis---------------->
				<div class="dis clearfix">
					<span class="on">顺风快递</span><span>百世汇通</span><span>圆通快递</span><span>中通快递</span>
				</div>
			</div>
			<div class="orderR fr">
				<div class="msg">
					<h3>
						订单内容<a href="Cart.jsp" class="fr">返回购物车</a>
					</h3>
					<!--------ul---------------->

					<c:forEach items="${list}" var="orderitem">
						<ul class="clearfix">
							<li class="fl"><img width="100" height="100" src=""></li>
							<li class="fl"><p>${orderitem.goodsname}</p>
								<p>价格：5559.0</p>
								<p>数量：${orderitem.goodscount}</p>
								<p>小计：${orderitem.total}</p></li>
							<li class="fr"></li>
						</ul>
					</c:forEach>

					<!-- 					<ul class="clearfix">
						<li class="fl"><img width="100" height="100" src=""></li>
						<li class="fl"><p>小米8</p>
							<p>价格：5555.0</p>
							<p>数量：1</p></li>
						<li class="fr"></li>
					</ul>
					<ul class="clearfix">
						<li class="fl"><img width="100" height="100" src=""></li>
						<li class="fl"><p>小米8</p>
							<p>价格：11110.0</p>
							<p>数量：0</p></li>
						<li class="fr"></li>
					</ul> -->




				</div>
				<!--------tips---------------->
				<form action="../os.do" method="post" target="_blank">
				<div class="tips">
					<p>
						<span class="fl">商品金额：</span><span class="fr">${ztotal}</span>
					</p>
					<p>
						<span class="fl">优惠金额：</span><span class="fr">￥0.00</span>
					</p>
					<p>
						<span class="fl">运费：</span><span class="fr">免运费</span>
					</p>
				</div>
				<!--------tips count---------------->
				<div class="count tips">
					<p>
						<span class="fl">合计：</span><span class="fr">${ztotal}</span>
					</p>
				</div>
				<!--<input type="button" name="" value="去支付">-->
				<a href="../os.do?op=createOrder" class="pay">去支付(1 直接跳转)</a>
				<hr>
				<!-- 2 表单提交 -->
				<input type="submit" class="pay" value="去支付">
				</form>
			</div>
		</div>
	</div>
	<!--编辑弹框-->
	<!--遮罩-->
	<div class="mask"></div>
	<div class="adddz editAddre">
		<form action="#" method="get">
			<input type="text" placeholder="姓名" class="on" /><input type="text"
				placeholder="手机号" />
			<div class="city">
				<select name="">
					<option value="省份/自治区">省份/自治区</option>
				</select><select>
					<option value="城市/地区">城市/地区</option>
				</select><select>
					<option value="区/县">区/县</option>
				</select><select>
					<option value="配送区域">配送区域</option>
				</select>
			</div>
			<textarea name="" rows="" cols="" placeholder="详细地址"></textarea>
			<input type="text" placeholder="邮政编码" />
			<div class="bc">
				<input type="button" value="保存" /><input type="button" value="取消" />
			</div>
		</form>
	</div>
	<!--返回顶部-->
	<div class="gotop">
		<a href="cart.html">
			<dl>
				<dt>
					<img src="Style/img/gt1.png" />
				</dt>
				<dd>
					去购<br />物车
				</dd>
			</dl>
		</a><a href="#" class="dh">
			<dl>
				<dt>
					<img src="Style/img/gt2.png" />
				</dt>
				<dd>
					联系<br />客服
				</dd>
			</dl>
		</a><a href="mygxin.html">
			<dl>
				<dt>
					<img src="Style/img/gt3.png" />
				</dt>
				<dd>
					个人<br />中心
				</dd>
			</dl>
		</a><a href="#" class="toptop" style="display: none;">
			<dl>
				<dt>
					<img src="Style/img/gt4.png" />
				</dt>
				<dd>
					返回<br />顶部
				</dd>
			</dl>
		</a>
		<p>400-800-8200</p>
	</div>
	<!--footer-->
	<div class="footer">
		<div class="top">
			<div class="wrapper">
				<div class="clearfix">
					<a href="#2" class="fl"><img src="Style/img/foot1.png" /></a><span
						class="fl">7天无理由退货</span>
				</div>
				<div class="clearfix">
					<a href="#2" class="fl"><img src="Style/img/foot2.png" /></a><span
						class="fl">15天免费换货</span>
				</div>
				<div class="clearfix">
					<a href="#2" class="fl"><img src="Style/img/foot3.png" /></a><span
						class="fl">满599包邮</span>
				</div>
				<div class="clearfix">
					<a href="#2" class="fl"><img src="Style/img/foot4.png" /></a><span
						class="fl">手机特色服务</span>
				</div>
			</div>
		</div>
		<p class="dibu">
			zmall商城&copy;2020-2030公司版权所有 京ICP备888888-01备0000000001号<br />
			违法和不良信息举报电话：188-8888-8888，本网站所列数据，除特殊说明，所有数据均出zmall开发人员测试
		</p>
	</div>
	<script src="Style/js/jquery-1.12.4.min.js" type="text/javascript"
		charset="utf-8"></script>
	<script src="Style/js/public.js" type="text/javascript" charset="utf-8"></script>
	<script src="Style/js/pro.js" type="text/javascript" charset="utf-8"></script>
	<script src="Style/js/user.js" type="text/javascript" charset="utf-8"></script>
</body>
</html>